# -*- coding = utf-8 -*-
"""
 Author: 苏苏少年
 File：019.py
 Time: 2022/5/16 17:13
"""
"""
    19.	找出五位数回文数。
    五位数中，对称的数称为回文数，打印所有的五位回文数并计算个数。如:12321.
"""

num = 10000
sum = 0
while num <= 99999:
    a = num % 10
    b = num // 10000
    c = num % 1000 // 10
    d = (num - (num//10000)*10000)//1000
    if a == b and c == d:
        print(num)
        sum += 1
    num += 1
print("5位数的回文数个数为：",sum)